package cn.xiaok.springboot;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;



//@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@SpringBootApplication
// Field userMapper in cn.xiaok.springboot.service.UserService required a bean of type
// 'cn.xiaok.springboot.mapper.UserMapper' that could not be found.
// 所以加上了@MapperScan
@MapperScan("cn.xiaok.springboot.mapper")
public class SpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootApplication.class, args);
    }

}
